//
//  THNetCheck.h
//  THBaseApp
//
//  Created by TryHone on 16/6/3.
//  Copyright © 2016年 TryHone. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef NS_ENUM(NSInteger, NetStatus) {
    NetStatus_Unknown = 0, //未识别的网络
    NetStatus_NotReachable = 1, //未连接网络
    NetStatus_ReachableViaWWAN = 2,//2G 3G 4G
    NetStatus_ReachableViaWiFi = 3 //wifi
};


typedef void (^TryHoneNetCheckStatusBlock)(NetStatus status);


@interface AWNetCheck : NSObject
//实例方法获取网络状态
-(void)netStatus:(TryHoneNetCheckStatusBlock)statusblock;
//类方法获取网络状态
+(void)netStatus:(TryHoneNetCheckStatusBlock)statusblock;
@end
